This repository was archived by the owner on Oct 13, 2023. It is now read-only.
Open
Conversation
QT has some weird behaviour where it would not only attempt to localize the numbers in text hold by certain QT widget, but also doing it wrong for this Chinese numbering format due to a bug.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
當Windows 系統數字設定成圖一時,QTBUG-85409會造成QWidget產生如圖二一堆奇奇怪怪的數字。複寫系統預設QLocale可以解決這個問題,不過不知道會不會影響其他QLocale相關的格式。
圖一: Standard digits設定更改為"〇一二三四五六七八九"
圖二: QT5 bug導致數字被更改成亂七八糟的格式
圖三: 更改預設的QLocale 後